# 1.打开文件  - r
f = open('test/demo2.txt', 'r', encoding='utf8')
# 2.操作文件 - readline
while True:
    line = f.readline()
    if not line:
        break
    print(line)

# 3.关闭文件
f.close()






